<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Title      : SettingsVersion    : 1.0
Released   : 20081010
Description: A two-column, fixed-width and lightweight template ideal for 1024x768 resolutions. Suitable for blogs and small websites.

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Settings by Free Css Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/media/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
	<div id="logo">
		<h1><a href="{%url index%}">Nos recettes<sup></sup></a></h1>
	</div>
	<div id="menu">
		<ul>
			<li class="active"><a href="/admin/">ajouter une recette</a></li>
		</ul>
	</div>
</div>
<!-- end header -->
</div>

<!-- start page -->
<div id="page">
	<!-- start content -->
	<div id="content">
		<div class="post">
			<h1 class="title">Rechercher une recette</h1>
			<form method="POST">
			<table>
			<tr><td><b>Ingrédients</b></td><td>&nbsp;&nbsp;&nbsp;{{form.ingredients}}</td><td></td></tr>
			<tr><td><b>Type</b></td><td>&nbsp;&nbsp;&nbsp;{{form.type}}</td><td><input type="submit" value="Rechercher"></td></tr>
			</table>
			</form>
			<br /><br /><br /><br />
		</div>
		<div class="post">
			<h2 class="title">Résultat</h2>
			{%if results%}
			<table>
			<tr><th width="200px" align="left">Nom du plat</th><th width="200px" align="left">Livre</th><th width="50px" align="left">Page</th><th width="300px" align="left">Liste des ingrédients</th></tr>
			{%for res in results%}
			<tr><td><a href="{%url fiche res.id%}">{{res}}</a></td><td>{{res.livre}}</td><td>{{res.page}}</td><td>{{res.ingredients.all|join:", "}}</td></tr>
			{%endfor%}
			</table>
			{%endif%}
		</div>
	</div>
	<!-- end content -->
	<!-- start sidebar -->
	<!-- <div id="sidebar">
		<ul>
			<li id="search">
				<h2><b class="text1">Search</b></h2>
				<form method="get" action="">
					<fieldset>
					<input type="text" id="s" name="s" value="" />
					<input type="submit" id="x" value="Search" />
					</fieldset>
				</form>
			</li>
			<li>
				<h2><strong>Lorem</strong> Ipsum</h2>
				<ul>
					<li><a href="#">Fusce dui neque fringilla</a></li>
					<li><a href="#">Eget tempor eget nonummy</a></li>
					<li><a href="#">Magna lacus bibendum mauris</a></li>
					<li><a href="#">Nec metus sed donec</a></li>
					<li><a href="#">Magna lacus bibendum mauris</a></li>
					<li><a href="#">Velit semper nisi molestie</a></li>
					<li><a href="#">Eget tempor eget nonummy</a></li>
				</ul>
			</li>
			<li>
				<h2><b>Volutpat</b> Dolore</h2>
				<ul>
					<li><a href="#">Nec metus sed donec</a></li>
					<li><a href="#">Magna lacus bibendum mauris</a></li>
					<li><a href="#">Velit semper nisi molestie</a></li>
					<li><a href="#">Eget tempor eget nonummy</a></li>
					<li><a href="#">Nec metus sed donec</a></li>
					<li><a href="#">Magna lacus bibendum mauris</a></li>
					<li><a href="#">Velit semper nisi molestie</a></li>
				</ul>
			</li>
			<li>
				<h2><b>Volutpat</b> Dolore</h2>
				<ul>
					<li><a href="#">Nec metus sed donec</a></li>
					<li><a href="#">Magna lacus bibendum mauris</a></li>
					<li><a href="#">Velit semper nisi molestie</a></li>
					<li><a href="#">Eget tempor eget nonummy</a></li>
				</ul>
			</li>
		</ul>
	</div>-->
	<!-- end sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
<!-- start footer -->
<div id="footer">
</div>
<!-- end footer -->
</body>
</html>
